package larrys.pomodoro.daoimpl.rowmappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import larrys.pomodoro.domain.entity.Role;

import org.springframework.jdbc.core.RowMapper;

public class RoleRowMapper implements RowMapper<Role> {

	@Override
	public Role mapRow(ResultSet rs, int rowNum) throws SQLException {
		return new Role(rs.getLong("id"), rs.getString("role_name"));
	}

}
